package chapter04

/**
 * Created with IntelliJ IDEA.
 * ClassName: Test03_Practice
 * Package: chapter04
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 *          Date: 2023-06-18
 *          Time: 21:38
 */

object Test03_Practice {
  def main(args: Array[String]): Unit = {
    //九九乘法表
    for (i <- 1 to 9 ; j <- 1 to i){
      print(j + "*" + i + "=" + i * j + " ")
      if (j == i) println()
    }
  }
}
